﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace IntelligentFiles.HcControl
{
    public partial class fileInfo : UserControl
    {
        public fileInfo()
        {
            InitializeComponent();
        }
        public void setInfo(string name, string number, string time ,string position)
        {
            lab_name.Text = name;
            lab_number.Text = number;
            lab_time.Text = time;
            lab_position.Text = position;
        }

        private void checkBox_CheckedChanged(object sender, EventArgs e)
        {
            if (checkBox.Checked)
            {
                this.BackColor = Color.FromArgb(2, 215, 233);
            }
            else
            {
                this.BackColor = Color.FromArgb(242, 242, 242);
            }
        }

        private void fileInfo_Click(object sender, EventArgs e)
        {
            checkBox.Checked = !checkBox.Checked;
        }
        private void fileInfo_Load(object sender, EventArgs e)
        {

        }
    }
}
